
cc.Class({
    extends: cc.Component,

    properties: {
        userLabel: cc.Label,
        LoseSprit:cc.Node,
        WinSprit:cc.Node,
        username:{
            get(){return this.userLabel ? this.userLabel.string : ''},
            set(n){this.userLabel && (this.userLabel.string = n);}
        },

        roundLabel: cc.Label,
        roundscore: {
            get() { return this.roundLabel ? this.roundLabel.string : '' },
            set(n) { this.roundLabel && (this.roundLabel.string = n); }
        },

        scoreLabel: cc.Label,
        score: {
            get() { return this.scoreLabel ? this.scoreLabel.string : '' },
            set(n) { this.scoreLabel && (this.scoreLabel.string = n); }
        },

          //庄分
        ZhuangScoreLabel:cc.Label,
        ZhuangScore: {
            get() { return this.ZhuangScoreLabel ? this.ZhuangScoreLabel.string : '' },
            set(n) { this.ZhuangScoreLabel && (this.ZhuangScoreLabel.string = n); }
        },
        //杠分
        GangScoreLabel: cc.Label,
        GangScore: {
            get() { return this.GangScoreLabel ? this.GangScoreLabel.string : '' },
            set(n) { this.GangScoreLabel && (this.GangScoreLabel.string = n); }
        },
        //缺分
        QueScoreLabel: cc.Label,
        QueScore: {
            get() { return this.QueScoreLabel ? this.QueScoreLabel.string : '' },
            set(n) { this.QueScoreLabel && (this.QueScoreLabel.string = n); }
        },
        //晒分
        ShaiScoreLabel: cc.Label,
        ShaiScore: {
            get() { return this.ShaiScoreLabel ? this.ShaiScoreLabel.string : '' },
            set(n) { this.ShaiScoreLabel && (this.ShaiScoreLabel.string = n); }
        },
        //风套分
        FengScoreLabel: cc.Label,
        FengScore: {
            get() { return this.FengScoreLabel ? this.FengScoreLabel.string : '' },
            set(n) { this.FengScoreLabel && (this.FengScoreLabel.string = n); }
        },
        //中发白分
        ZhongFaBaiScoreLabel: cc.Label,
        ZhongFaBaiScore: {
            get() { return this.ZhongFaBaiScoreLabel ? this.ZhongFaBaiScoreLabel.string : '' },
            set(n) { this.ZhongFaBaiScoreLabel && (this.ZhongFaBaiScoreLabel.string = n); }
        },
        //卡牌分
        KaScoreLabel: cc.Label,
        KaScore: {
            get() { return this.KaScoreLabel ? this.KaScoreLabel.string : '' },
            set(n) { this.KaScoreLabel && (this.KaScoreLabel.string = n); }
        },

    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},
});
